<%-- 
    Document   : paziente
    Created on : 7-dic-2011, 13.08.07
    Author     : sestari
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>

<%@taglib prefix="a4j" uri="http://richfaces.org/a4j"%>
<%@taglib prefix="rich" uri="http://richfaces.org/rich"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<f:view>
    <html>

        <head>
            <link rel="stylesheet" type="text/css" href="../style_generale.css" />
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />           
            <f:loadBundle basename="message.message" var="msg"/>        
            <title> <h:outputText value="#{msg.paginamvisita}"/> </title>
        </head>         
        <body>                      
            <h:form>                        
                <h:selectOneMenu id="combo" value="#{beanMedico.idpaziente}" onchange="submit()" immediate="true"  styleClass="buttoncomlu">           
                    <f:selectItems value="#{beanMedico.nomeComboBoxVisite}"  />
                </h:selectOneMenu>
            </h:form>

            <h:form>
                <h:dataTable value="#{beanMedico.getmodVisita()}" var="listaPazienti" 
                             style="overflow:auto; width:100%; height:50px"
                             styleClass="orders" headerClass="ordersHeader" columnClasses="evenColumn,oddColumn"> 
                    <h:column>
                        <f:facet name="header">
                            <h:outputText value="#{msg.nome}"/>
                        </f:facet>
                        <h:outputText value="#{listaPazienti.nome}"/> 
                    </h:column>
                    <h:column>
                        <f:facet name="header">
                            <h:outputText value="#{msg.cognome}"/> 
                        </f:facet>
                        <h:outputText value="#{listaPazienti.cognome}"/> 
                    </h:column>


                    <h:column>
                        <f:facet name="header">
                            <h:outputText value="#{msg.descrizione}"/> 
                        </f:facet>                              
                        <h:inputTextarea  styleClass="campoUptade" value="#{beanFormmod_visita.desc}" id="desc" cols="5" rows="3" />                                                                        
                    </h:column>
                    <h:column>
                        <f:facet name="header">
                            <h:outputText value="#{msg.data_scadenza}"/> 
                        </f:facet>             
                        <h:outputText value="#{listaPazienti.data_scadenza}" >
                            <f:convertDateTime type="date" dateStyle="short"/>
                        </h:outputText>

                    </h:column>

                    <h:column>
                        <f:facet name="header">
                            <h:outputText value="#{msg.tipo_visita}"/> 
                        </f:facet>                        
                        <h:outputText value="#{listaPazienti.tipo_visita}" />
                    </h:column>


                    <h:column>
                        <f:facet name="header">
                            <h:outputText value="#{msg.tipo_scadenza}" /> 
                        </f:facet>
                        <h:outputText value="#{listaPazienti.tipo_scadenza}" />
                    </h:column>
                    <h:column>
                        <f:facet name="header">
                            <h:outputText value="#{msg.aggvisita}"/> 
                        </f:facet>

                        <h:commandButton style="font-style: italic" value="#{msg.agg}" action="#{beanFormmod_visita.modifica()}" styleClass="buttoncombo"/>

                    </h:column>



                </h:dataTable> 
            </h:form>





            <h:form>
                <h:commandButton value="#{msg.back}" action="back" styleClass="button"/>                
            </h:form>
            <br>
            <br>
            <br>            
            <%@ include file="/lingua/lingua.jsp" %>
        </body>
    </body>

</html>
</f:view>